; Music of Sly Spy - Secret Agent (1990) (Ocean Software) (Geoff Follin)
; Ripped by Megachur the 17/10/2008

	write "SLYSP-SA.BIN"

music_date_rip	equ &11a8
music_adr	equ &4000
first_theme	equ 0
last_theme	equ 2	; 0 -> 2

	read "music_header_v1_0.asm"

;org #4000
.l4007 equ $ + 7
.l4006 equ $ + 6
.l4000
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4008
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4013 equ $ + 3
.l4012 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l402f equ $ + 7
.l402a equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4035 equ $ + 5
	db #00,#08,#00,#01,#09,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4047 equ $ + 7
.l4046 equ $ + 6
.l4040
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4048
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4053 equ $ + 3
.l4052 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l406f equ $ + 7
.l406a equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4075 equ $ + 5
	db #00,#09,#02,#03,#12,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4087 equ $ + 7
.l4086 equ $ + 6
.l4080
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4088
	db #00,#00,#00,#00,#00,#00,#00,#00
.l4093 equ $ + 3
.l4092 equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l40af equ $ + 7
.l40aa equ $ + 2
	db #00,#00,#00,#00,#00,#00,#00,#00
.l40b5 equ $ + 5
	db #00,#0a,#04,#05,#24,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	;
.init_music
	;
	add a
	ld c,a
	ld b,#00
	ld hl,l4629
	add hl,bc
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld (l4000),de
	ld hl,l462f
	add hl,bc
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld (l4040),de
	ld hl,l4635
	add hl,bc
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld (l4080),de
	ld a,#ff
	ld (l4006),a
	ld (l4046),a
	ld (l4086),a
.l40f0
	ld (l4013),a
	ld (l4053),a
	ld (l4093),a
	ld hl,l4007
	ld de,l4008
	ld bc,#000a
	ld (hl),b
	ldir
	ld hl,l4047
	ld de,l4048
	ld c,#0a
	ld (hl),b
	ldir
	ld hl,l4087
	ld de,l4088
	ld c,#0a
	ld (hl),b
	ldir
	ld a,#01
	ld (l4012),a
	ld (l4052),a
	ld (l4092),a
	ld a,#09
	ld (l402a),a
	rlca
	ld (l406a),a
	rlca
	ld (l40aa),a
	ld hl,l4035
	ld (l402f),hl
	ld hl,l4075
	ld (l406f),hl
	ld hl,l40b5
	ld (l40af),hl
	ret
	;
.stop_music
	;
	ld c,#00
	ld a,#08
	call l4551
	ld c,#00
	ld a,#09
	call l4551
	ld c,#00
	ld a,#0a
	call l4551
	xor a
	ld (l4006),a
	ld (l4046),a
	ld (l4086),a
	dec a
	jr l40f0
	add a
	ld hl,l463b
	call l41a0
	ld a,(hl)
	inc hl
	ld h,(hl)
	ld l,a
.l4173
	ex de,hl
	ld a,(de)
	or a
	ret m
	rrca
	rrca
	rrca
	ld hl,l4006
	call l41a0
	ld (hl),#ff
	ld hl,l4012
	ld a,(de)
	rrca
	rrca
	rrca
	call l41a0
	ld (hl),#01
	ld a,(de)
	rrca
	rrca
	rrca
	ld hl,l4000
	call l41a0
	inc de
	ex de,hl
	ldi
	ldi
	jr l4173
.l41a0
	add l
	ld l,a
	ret nc
	inc h
	ret
	;
.play_music
	;
	ld ix,l4000
	call l41b7
	ld ix,l4040
	call l41b7
	ld ix,l4080
.l41b7
	ld a,(ix+#06)
	or a
	ret p
	ld a,(ix+#1d)
	or a
	jr nz,l41e5
	dec (ix+#1e)
	jp p,l4209
	ld a,(ix+#19)
	ld (ix+#1e),a
	inc (ix+#15)
	ld a,(ix+#15)
	cp #0f
	jr nz,l4209
	ld a,#01
	ld (ix+#1d),a
	ld a,(ix+#1a)
	ld (ix+#1e),a
	jr l4209
.l41e5
	cp #01
	jr nz,l4209
	dec (ix+#1e)
	jp p,l4209
	ld a,(ix+#1a)
	ld (ix+#1e),a
	ld a,(ix+#15)
	cp (ix+#1b)
	jr z,l4204
	dec a
	ld (ix+#15),a
	jp p,l4209
.l4204
	ld a,#02
	ld (ix+#1d),a
.l4209
	ld c,(ix+#15)
	ld a,(ix+#31)
	call l4551
	ld a,(ix+#0f)
	or a
	jr z,l4240
	ld a,(ix+#28)
	or a
	jr z,l4240
	dec a
	ld (ix+#28),a
	jp nz,l430e
	ld c,(ix+#04)
	ld a,(ix+#32)
	call l4551
	ld c,(ix+#05)
	ld a,(ix+#33)
	call l4551
	ld a,(ix+#2b)
	ld (ix+#2a),a
	call l4415
.l4240
	ld a,(ix+#0e)
	or a
	jr z,l4294
	ld a,(ix+#21)
	or a
	jr z,l4252
	dec a
	ld (ix+#21),a
	jr nz,l4294
.l4252
	ld l,(ix+#04)
	ld h,(ix+#05)
	ld e,(ix+#22)
	ld d,#00
	ld a,(ix+#16)
	or a
	jr z,l4266
	add hl,de
	jr l4268
.l4266
	sbc hl,de
.l4268
	ld (ix+#04),l
	ld (ix+#05),h
	ld c,l
	ld a,(ix+#32)
	call l4551
	ld c,h
	ld a,(ix+#33)
	call l4551
	dec (ix+#23)
	jr nz,l42c4
	ld a,(ix+#24)
	or a
	jr z,l42c4
	add a
	ld (ix+#23),a
	ld a,(ix+#16)
	cpl
	ld (ix+#16),a
	jr l42c4
.l4294
	ld a,(ix+#0a)
	or a
	jr z,l42c4
	dec a
	ld (ix+#0a),a
	jr nz,l42c4
	ld a,(ix+#0b)
	ld (ix+#0a),a
	ld l,(ix+#1f)
	ld a,(ix+#16)
	xor #ff
	ld (ix+#16),a
	ld a,(ix+#17)
	jr z,l42b9
	add l
	jr l42e6
.l42b9
	sub l
	push af
	ld a,(ix+#0c)
	ld (ix+#0a),a
	pop af
	jr l42e6
.l42c4
	ld a,(ix+#0d)
	or a
	jr z,l430e
	ld e,a
	ld a,(ix+#17)
	cp (ix+#20)
	jr z,l430e
	jr c,l42dd
	sub e
	cp (ix+#20)
	jr nc,l42e6
	jr l42e3
.l42dd
	add e
	cp (ix+#20)
	jr c,l42e6
.l42e3
	ld a,(ix+#20)
.l42e6
	ld (ix+#17),a
	add a
	ld e,a
	ld d,#00
	ld hl,l456f
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld l,(ix+#11)
	ld h,#00
	add hl,de
	ld (ix+#04),l
	ld (ix+#05),h
	ld c,l
	ld a,(ix+#32)
	call l4551
	ld c,h
	ld a,(ix+#33)
	call l4551
.l430e
	dec (ix+#12)
	push af
	ld a,(ix+#2c)
	cp (ix+#12)
	jr z,l4320
	ld a,(ix+#2d)
	or a
	jr nz,l432c
.l4320
	ld a,(ix+#34)
	ld (ix+#2a),a
	call l4415
	inc (ix+#2d)
.l432c
	dec (ix+#2d)
	pop af
	ret nz
	ld c,(ix+#00)
	ld b,(ix+#01)
.l4337
	ld a,(bc)
	inc bc
	or a
	jp p,l4350
	and #7f
	add a
	ld e,a
	ld d,#00
	ld hl,l4337
	push hl
	ld hl,l442e
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ex de,hl
	jp (hl)
.l4350
	ld l,a
	ld a,(ix+#09)
	or a
	jr z,l435d
	xor a
	ld (ix+#09),a
	jr l4360
.l435d
	ld a,(ix+#07)
.l4360
	add l
	ld l,a
	ld a,(ix+#0d)
	or a
	ld a,l
	jr z,l436f
	ld (ix+#20),a
	ld a,(ix+#17)
.l436f
	ld (ix+#17),a
	add a
	push bc
	ld e,a
	ld d,#00
	ld hl,l456f
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld l,(ix+#11)
	ld h,#00
	add hl,de
	ld (ix+#04),l
	ld (ix+#05),h
	ld c,l
	ld a,(ix+#32)
	call l4551
	ld c,h
	ld a,(ix+#33)
	call l4551
	pop bc
	ld a,(ix+#08)
	or a
	jr nz,l43a1
	ld a,(bc)
	inc bc
.l43a1
	ld (ix+#12),a
	ld (ix+#00),c
	ld (ix+#01),b
	ld a,(ix+#0b)
	ld (ix+#0a),a
	ld a,(ix+#2e)
	ld (ix+#2d),a
	ld a,(ix+#2b)
	ld (ix+#2a),a
	call l4415
	ld a,(ix+#0e)
	or a
	jr z,l43d1
	ld (ix+#21),a
	ld a,(ix+#24)
	ld (ix+#23),a
	ld a,(ix+#25)
.l43d1
	ld (ix+#16),a
	ld a,(ix+#14)
	or a
	jr z,l43f2
	ld a,(ix+#1c)
	ld (ix+#1d),a
	or a
	ld a,(ix+#19)
	jr z,l43e9
	ld a,(ix+#1a)
.l43e9
	ld (ix+#1e),a
	ld a,(ix+#18)
	ld (ix+#15),a
.l43f2
	ld a,(ix+#0f)
	or a
	ret z
	ld (ix+#28),a
	ld a,(ix+#29)
	ld (ix+#2a),a
	call l4415
	ld c,(ix+#26)
	ld a,(ix+#32)
	call l4551
	ld c,(ix+#27)
	ld a,(ix+#33)
	jp l4551
.l4415
	ld a,(l402a)
	and #09
	ld c,a
	ld a,(l406a)
	and #12
	ld b,a
	ld a,(l40aa)
	and #24
	or c
	or b
	ld c,a
	ld a,#07
	jp l4551
.l442e
	dw l4454,l4460,l446b,l4471
	dw l447e,l4497,l44a8,l44ae
	dw l44b4,l44d1,l44f9,l44ff
	dw l450f,l4515,l452a,l4530
	dw l4476,l454b,l4545
.l4454
	ld a,(bc)
	ld (ix+#10),a
	inc bc
	ld (ix+#02),c
	ld (ix+#03),b
	ret
.l4460
	dec (ix+#10)
	ret z
	ld c,(ix+#02)
	ld b,(ix+#03)
	ret
.l446b
	ld a,(bc)
	ld (ix+#08),a
	inc bc
	ret
.l4471
	inc (ix+#06)
	pop af
	ret
.l4476
	ld a,(bc)
	ld l,a
	inc bc
	ld a,(bc)
	ld h,a
	push hl
	pop bc
	ret
.l447e
	ld a,(bc)
	ld l,a
	inc bc
	ld a,(bc)
	ld h,a
	inc bc
	push hl
	ld l,(ix+#2f)
	ld h,(ix+#30)
	ld (hl),c
	inc hl
	ld (hl),b
	inc hl
	ld (ix+#2f),l
	ld (ix+#30),h
	pop bc
	ret
.l4497
	ld l,(ix+#2f)
	ld h,(ix+#30)
	dec hl
	ld b,(hl)
	dec hl
	ld c,(hl)
	ld (ix+#2f),l
	ld (ix+#30),h
	ret
.l44a8
	ld a,(bc)
	ld (ix+#07),a
	inc bc
	ret
.l44ae
	ld a,(bc)
	ld (ix+#11),a
	inc bc
	ret
.l44b4
	ld a,(bc)
	ld l,a
	inc bc
	ld a,(bc)
	inc bc
	push bc
	ld c,a
	ld a,l
	cp #07
	jr nz,l44cc
	ld a,c
	ld (ix+#2a),a
	ld (ix+#2b),a
	call l4415
	pop bc
	ret
.l44cc
	call l4551
	pop bc
	ret
.l44d1
	ld a,(bc)
	rra
	rra
	rra
	rra
	and #0f
	ld (ix+#18),a
	ld a,(bc)
	and #0f
	ld (ix+#1b),a
	inc bc
	ld a,(bc)
	rra
	rra
	rra
	rra
	and #0f
	ld (ix+#19),a
	ld a,(bc)
	and #0f
	ld (ix+#1a),a
	inc bc
	ld a,(bc)
	ld (ix+#1c),a
	inc bc
	ret
.l44f9
	ld a,(bc)
	ld (ix+#14),a
	inc bc
	ret
.l44ff
	ld a,(bc)
	ld (ix+#1f),a
	inc bc
	ld a,(bc)
	ld (ix+#0b),a
	inc bc
	ld a,(bc)
	ld (ix+#0c),a
	inc bc
	ret
.l450f
	ld a,(bc)
	ld (ix+#0d),a
	inc bc
	ret
.l4515
	ld a,(bc)
	ld (ix+#0e),a
	inc bc
	ld a,(bc)
	ld (ix+#22),a
	inc bc
	ld a,(bc)
	ld (ix+#24),a
	inc bc
	ld a,(bc)
	ld (ix+#25),a
	inc bc
	ret
.l452a
	ld a,#ff
	ld (ix+#09),a
	ret
.l4530
	ld a,(bc)
	ld (ix+#0f),a
	inc bc
	ld a,(bc)
	ld (ix+#29),a
	inc bc
	ld a,(bc)
	ld (ix+#26),a
	inc bc
	ld a,(bc)
	ld (ix+#27),a
	inc bc
	ret
.l4545
	ld a,(bc)
	ld (ix+#2c),a
	inc bc
	ret
.l454b
	ld a,(bc)
	ld (ix+#2e),a
	inc bc
	ret
.l4551
	ld b,#f4
	out (c),a
	ld b,#f6
	in a,(c)
	or #c0
	out (c),a
	and #3f
	out (c),a
	ld b,#f4
	out (c),c
	ld b,#f6
	ld c,a
	or #80
	out (c),a
	out (c),c
	ret
.l456f
	dw #09f7,#0968,#08e1,#0861
	dw #07e9,#0777,#070c,#06a7
	dw #0647,#05ed,#0598,#0547
	dw #04fc,#04b4,#0470,#0431
	dw #03f4,#03bc,#0386,#0353
	dw #0324,#02f6,#02cc,#02a4
	dw #027e,#025a,#0238,#0218
	dw #01fa,#01de,#01c3,#01aa
	dw #0192,#017b,#0166,#0152
	dw #013f,#012d,#011c,#010c
	dw #00fd,#00ef,#00e1,#00d5
	dw #00c9,#00be,#00b3,#00a9
	dw #009f,#0096,#008e,#0086
	dw #007f,#0077,#0071,#006a
	dw #0064,#005f,#0059,#0054
	dw #0050,#004b,#0047,#0043
	dw #003f,#003c,#0038,#0035
	dw #0032,#002f,#002d,#002a
	dw #0028,#0026,#0024,#0022
	dw #0020,#001e,#001c,#001b
	dw #0019,#0018,#0016,#0015
	dw #0014,#0013,#0012,#0011
	dw #0010,#0010,#0010,#0010
	dw #0010
.l462f equ $ + 6
.l4629
	dw l4642,l4fef,l4ec7,l4894
.l4635 equ $ + 4
	dw l500d,l4f13,l4a0a,l50ab
.l463b equ $ + 2
	dw l4f50,l463d
.l4642 equ $ + 5
.l463d
	db #00,#3d,#46,#ff,#83,#91,#ff,#92
	db #ff,#8a,#01,#89,#80,#00,#01,#88
	db #07,#01,#88,#06,#07,#80,#06,#4e
	db #06,#4e,#06,#4e,#06,#4e,#06,#81
	db #84,#34,#4e,#92,#03,#89,#a9,#05
	db #01,#88,#07,#08,#8d,#06,#02,#02
	db #00,#80,#02,#38,#06,#38,#06,#3b
	db #06,#38,#12,#3f,#12,#3b,#12,#38
	db #24,#3b,#0c,#3d,#0c,#42,#12,#44
	db #12,#42,#24,#40,#0c,#3d,#0c,#3b
	db #06,#3b,#06,#3b,#0c,#3b,#06,#3b
	db #0c,#3b,#06,#3b,#0c,#3a,#06,#38
	db #12,#3a,#0c,#8d,#00,#00,#00,#00
	db #8b,#f4,#02,#03,#3b,#06,#3b,#06
	db #3b,#0c,#38,#06,#3a,#0c,#38,#06
	db #3b,#0c,#81,#8b,#00,#00,#00,#88
	db #07,#09,#0b,#0c,#88,#07,#08,#92
	db #01,#89,#a1,#23,#01,#8d,#06,#02
	db #03,#00,#47,#06,#47,#06,#47,#06
	db #47,#06,#4b,#0c,#47,#06,#49,#12
	db #4b,#06,#50,#06,#4e,#0c,#50,#06
	db #4b,#06,#4e,#06,#50,#06,#53,#06
	db #50,#06,#56,#03,#57,#09,#53,#06
	db #50,#12,#53,#06,#50,#06,#56,#03
	db #57,#03,#57,#06,#57,#0c,#55,#06
	db #56,#03,#57,#03,#53,#06,#50,#06
	db #50,#06,#4e,#0c,#50,#06,#4b,#12
	db #4f,#03,#50,#03,#49,#08,#4b,#04
	db #4e,#08,#4b,#04,#49,#06,#47,#0c
	db #46,#06,#44,#06,#88,#07,#09,#06
	db #06,#88,#07,#08,#44,#06,#4b,#12
	db #44,#06,#88,#07,#09,#06,#06,#88
	db #07,#08,#44,#06,#50,#12,#52,#02
	db #53,#04,#50,#0c,#4e,#06,#86,#f4
	db #4b,#0c,#47,#06,#49,#12,#4b,#06
	db #50,#06,#53,#06,#50,#06,#53,#06
	db #55,#06,#50,#06,#53,#0c,#50,#06
	db #56,#03,#57,#09,#53,#06,#57,#03
	db #58,#0f,#50,#06,#56,#03,#57,#03
	db #57,#06,#57,#0c,#55,#06,#56,#03
	db #57,#03,#53,#06,#50,#06,#4e,#06
	db #50,#0c,#4b,#02,#4c,#02,#4d,#02
	db #4e,#02,#4f,#02,#50,#02,#53,#10
	db #50,#08,#55,#10,#52,#08,#57,#10
	db #53,#08,#58,#0c,#53,#02,#54,#02
	db #55,#02,#56,#02,#57,#02,#58,#02
	db #5a,#18,#8b,#02,#03,#03,#5c,#30
	db #8b,#00,#00,#00,#86,#00,#80,#02
	db #89,#a0,#00,#02,#3d,#06,#3d,#06
	db #3d,#06,#3d,#06,#89,#a0,#00,#01
	db #8d,#06,#05,#00,#01,#3d,#18,#8d
	db #00,#00,#00,#00,#89,#a0,#00,#02
	db #91,#03,#3d,#06,#91,#06,#3d,#0c
	db #91,#03,#3d,#06,#3d,#06,#3d,#06
	db #3d,#06,#3d,#06,#8b,#08,#02,#04
	db #91,#03,#3e,#06,#3e,#06,#3e,#06
	db #3e,#06,#91,#06,#3e,#18,#89,#a0
	db #00,#02,#91,#03,#3e,#06,#91,#06
	db #3e,#0c,#91,#03,#3e,#06,#3e,#06
	db #3e,#06,#3e,#06,#3e,#06,#8b,#0c
	db #02,#02,#81,#8b,#00,#00,#00,#8d
	db #06,#04,#00,#01,#49,#30,#91,#ff
	db #92,#ff,#8d,#00,#00,#00,#00,#84
	db #34,#4e,#89,#a0,#00,#01,#3d,#06
	db #3d,#06,#3d,#06,#3d,#06,#3d,#06
	db #3d,#06,#80,#02,#84,#56,#4b,#81
	db #86,#fd,#80,#02,#84,#56,#4b,#81
	db #86,#00,#82,#06,#3a,#3a,#3a,#3a
	db #3a,#3a,#3a,#3a,#3a,#3a,#3a,#3a
	db #3a,#3a,#3a,#3a,#3b,#3b,#3b,#3b
	db #3b,#3b,#3b,#3b,#3b,#3b,#3b,#3b
	db #3b,#3b,#3b,#3b,#3d,#3d,#3d,#3d
	db #3d,#3d,#3d,#3d,#3d,#3d,#3d,#3d
	db #3d,#3d,#3d,#3d,#82,#00,#8d,#00
.l4894 equ $ + 7
	db #00,#00,#00,#90,#42,#46,#83,#91
	db #ff,#92,#ff,#88,#07,#10,#8a,#01
	db #89,#60,#23,#01,#8d,#0c,#07,#03
	db #00,#25,#18,#2a,#18,#89,#70,#23
	db #01,#2c,#18,#2f,#18,#89,#80,#23
	db #01,#31,#18,#36,#18,#89,#90,#27
	db #01,#8b,#05,#02,#02,#36,#30,#8b
	db #00,#00,#00,#80,#04,#84,#ee,#4c
	db #81,#86,#fb,#80,#04,#84,#ee,#4c
	db #81,#86,#00,#80,#04,#84,#1a,#4d
	db #81,#86,#07,#80,#04,#84,#1a,#4d
	db #81,#86,#00,#80,#04,#84,#47,#4d
	db #81,#86,#07,#80,#04,#84,#47,#4d
	db #81,#86,#00,#80,#04,#84,#74,#4d
	db #81,#86,#07,#80,#04,#84,#74,#4d
	db #81,#86,#00,#82,#06,#80,#02,#88
	db #07,#02,#88,#06,#07,#82,#06,#89
	db #b0,#00,#01,#4e,#4e,#4e,#4e,#4e
	db #89,#80,#00,#01,#58,#58,#58,#89
	db #b0,#00,#01,#4e,#4e,#4e,#4e,#4e
	db #4e,#4e,#4e,#82,#00,#88,#07,#10
	db #89,#b0,#00,#01,#2e,#06,#2e,#06
	db #2e,#06,#2e,#06,#2e,#18,#2e,#06
	db #2e,#0c,#2e,#06,#2e,#06,#2e,#06
	db #2e,#06,#2e,#06,#81,#91,#ff,#92
	db #01,#8b,#00,#00,#00,#8d,#00,#00
	db #00,#00,#86,#0c,#84,#c3,#4d,#86
	db #07,#84,#c3,#4d,#86,#03,#84,#c3
	db #4d,#86,#00,#84,#c3,#4d,#86,#00
	db #84,#bb,#4e,#89,#91,#00,#01,#92
	db #ff,#88,#07,#10,#89,#a0,#00,#01
	db #8d,#00,#00,#00,#00,#3d,#06,#3d
	db #06,#3b,#06,#3b,#06,#39,#06,#39
	db #06,#80,#02,#84,#ec,#4b,#81,#86
	db #fd,#80,#02,#84,#ec,#4b,#81,#86
	db #00,#80,#02,#89,#a0,#00,#01,#88
	db #07,#10,#22,#06,#22,#06,#22,#06
	db #22,#06,#84,#82,#4e,#89,#a0,#00
	db #01,#88,#07,#10,#22,#06,#22,#06
	db #81,#80,#02,#89,#a0,#00,#01,#88
	db #07,#10,#23,#06,#23,#06,#23,#06
	db #23,#06,#84,#82,#4e,#89,#a0,#00
	db #01,#88,#07,#10,#23,#06,#23,#06
	db #81,#80,#02,#89,#a0,#00,#01,#88
	db #07,#10,#25,#06,#25,#06,#25,#06
	db #25,#06,#84,#82,#4e,#89,#a0,#00
	db #01,#88,#07,#10,#25,#06,#25,#06
.l4a0a equ $ + 5
	db #81,#90,#94,#48,#83,#91,#ff,#92
	db #ff,#88,#07,#20,#8a,#01,#89,#b1
	db #00,#01,#80,#03,#88,#07,#20,#19
	db #0c,#88,#07,#24,#05,#12,#88,#07
	db #20,#14,#06,#14,#06,#14,#06,#81
	db #91,#06,#20,#0c,#91,#03,#20,#06
	db #20,#06,#20,#06,#91,#06,#20,#12
	db #86,#f4,#80,#04,#84,#a6,#4d,#81
	db #86,#ef,#80,#04,#84,#a6,#4d,#81
	db #86,#00,#80,#04,#84,#a6,#4d,#81
	db #86,#fb,#80,#04,#84,#a6,#4d,#81
	db #86,#00,#80,#04,#84,#a6,#4d,#81
	db #86,#fb,#80,#04,#84,#a6,#4d,#81
	db #86,#f4,#80,#04,#84,#a6,#4d,#81
	db #86,#ef,#80,#04,#84,#a6,#4d,#81
	db #86,#00,#92,#01,#88,#07,#20,#89
	db #c0,#00,#01,#80,#02,#91,#03,#25
	db #06,#25,#06,#25,#06,#25,#06,#8d
	db #06,#04,#00,#01,#91,#06,#25,#18
	db #8d,#06,#04,#01,#01,#91,#03,#25
	db #06,#91,#06,#25,#0c,#91,#03,#25
	db #06,#25,#06,#25,#06,#25,#06,#25
	db #06,#8b,#09,#02,#04,#91,#03,#20
	db #06,#20,#06,#20,#06,#20,#06,#91
	db #06,#20,#18,#91,#03,#20,#06,#91
	db #06,#20,#0c,#91,#03,#20,#06,#20
	db #06,#20,#06,#20,#06,#20,#06,#8b
	db #00,#00,#00,#81,#8b,#00,#00,#00
	db #8d,#06,#03,#00,#01,#31,#30,#91
	db #ff,#92,#01,#88,#07,#24,#0c,#0c
	db #88,#07,#20,#8d,#06,#04,#01,#01
	db #31,#06,#31,#06,#34,#06,#34,#06
	db #36,#06,#36,#06,#80,#02,#84,#63
	db #4c,#81,#86,#fd,#80,#02,#84,#63
	db #4c,#81,#86,#00,#82,#06,#3a,#3a
	db #3a,#3a,#38,#38,#38,#38,#36,#36
	db #36,#36,#35,#35,#35,#35,#3b,#3b
	db #3b,#3b,#39,#39,#39,#39,#37,#37
	db #37,#37,#36,#36,#36,#36,#3d,#3d
	db #3d,#3d,#3b,#3b,#3b,#3b,#39,#39
	db #39,#39,#38,#38,#38,#38,#82,#00
	db #8d,#00,#00,#00,#00,#90,#0a,#4a
	db #83,#8a,#01,#89,#b0,#00,#01,#88
	db #07,#08,#40,#06,#89,#80,#00,#01
	db #88,#07,#01,#88,#06,#07,#57,#06
	db #54,#06,#89,#b0,#03,#01,#88,#07
	db #08,#3f,#0c,#89,#80,#00,#01,#88
	db #07,#01,#88,#06,#07,#57,#06,#54
	db #06,#57,#06,#89,#b0,#00,#01,#88
	db #07,#08,#40,#06,#89,#80,#00,#01
	db #88,#07,#01,#88,#06,#07,#57,#06
	db #54,#06,#89,#b0,#03,#01,#88,#07
	db #08,#3f,#0c,#89,#80,#00,#01,#88
	db #07,#01,#88,#06,#07,#57,#06,#54
	db #06,#57,#06,#89,#b0,#00,#01,#88
	db #07,#08,#3b,#06,#3d,#06,#89,#80
	db #00,#01,#88,#07,#01,#88,#06,#07
	db #57,#06,#54,#06,#57,#06,#54,#06
	db #84,#0d,#4e,#89,#b0,#00,#01,#88
	db #07,#08,#3d,#06,#3d,#06,#3d,#06
	db #3d,#06,#3d,#06,#3d,#06,#85,#8a
	db #01,#89,#80,#00,#01,#88,#07,#10
	db #39,#06,#89,#80,#00,#02,#49,#06
	db #45,#04,#40,#04,#3d,#04,#84,#82
	db #4e,#88,#07,#10,#89,#80,#00,#02
	db #3d,#04,#40,#04,#45,#04,#89,#80
	db #00,#01,#39,#06,#89,#80,#00,#02
	db #49,#06,#45,#04,#40,#04,#3d,#04
	db #84,#82,#4e,#89,#80,#00,#02,#88
	db #07,#10,#3d,#04,#40,#04,#45,#04
	db #8b,#0c,#01,#01,#47,#06,#49,#06
	db #88,#07,#12,#0b,#0c,#8b,#00,#00
	db #00,#84,#82,#4e,#84,#dd,#4d,#88
	db #07,#10,#89,#90,#00,#01,#53,#06
	db #55,#06,#88,#07,#12,#0b,#0c,#84
	db #82,#4e,#84,#c3,#4d,#85,#92,#01
	db #84,#a9,#4e,#8a,#01,#89,#c1,#00
	db #01,#88,#07,#20,#92,#03,#15,#06
	db #15,#06,#15,#06,#92,#01,#84,#a9
	db #4e,#89,#c1,#00,#01,#88,#07,#20
	db #92,#03,#21,#06,#21,#06,#21,#06
	db #92,#01,#84,#a9,#4e,#89,#c1,#00
	db #01,#88,#07,#20,#92,#03,#15,#06
	db #21,#06,#21,#06,#92,#01,#84,#a9
	db #4e,#89,#c1,#00,#01,#88,#07,#20
	db #92,#03,#2d,#06,#21,#06,#21,#06
	db #23,#06,#25,#06,#25,#06,#25,#06
	db #92,#01,#84,#a9,#4e,#89,#c1,#00
	db #01,#88,#07,#20,#92,#03,#19,#06
	db #19,#06,#19,#06,#92,#01,#84,#a9
	db #4e,#89,#c1,#00,#01,#88,#07,#20
	db #92,#03,#1e,#06,#20,#06,#23,#06
	db #25,#06,#23,#06,#20,#06,#25,#06
	db #85,#8a,#01,#89,#90,#00,#02,#88
	db #07,#10,#31,#03,#34,#03,#38,#03
	db #3b,#03,#3d,#03,#38,#03,#3d,#03
	db #38,#03,#84,#82,#4e,#89,#90,#00
	db #02,#88,#07,#10,#44,#03,#40,#03
	db #44,#03,#40,#03,#85,#8a,#01,#89
	db #90,#00,#02,#84,#bb,#4e,#88,#07
	db #10,#8a,#01,#89,#80,#00,#02,#31
	db #03,#34,#03,#38,#03,#3b,#03,#84
	db #82,#4e,#89,#90,#00,#02,#88,#07
	db #10,#44,#03,#40,#03,#44,#03,#40
	db #03,#85,#8a,#01,#89,#90,#00,#02
	db #84,#bb,#4e,#88,#07,#10,#8a,#01
	db #89,#80,#00,#02,#31,#03,#34,#03
	db #38,#03,#3b,#03,#84,#bb,#4e,#89
	db #90,#00,#02,#88,#07,#10,#44,#03
	db #40,#03,#44,#03,#40,#03,#85,#8a
	db #01,#89,#80,#00,#02,#88,#07,#10
	db #31,#03,#34,#03,#38,#03,#3b,#03
	db #3d,#03,#40,#03,#44,#03,#47,#03
	db #84,#5b,#4e,#8a,#01,#89,#80,#00
	db #02,#88,#07,#10,#44,#03,#40,#03
	db #3d,#03,#3b,#03,#38,#03,#34,#03
	db #85,#92,#01,#84,#a9,#4e,#89,#c3
	db #00,#01,#92,#03,#88,#07,#20,#25
	db #06,#20,#06,#23,#06,#25,#06,#20
	db #06,#23,#06,#25,#06,#85,#8a,#01
	db #89,#a0,#00,#01,#8d,#01,#05,#00
	db #01,#88,#07,#10,#40,#04,#3d,#04
	db #3b,#04,#8d,#00,#00,#00,#00,#85
	db #8a,#01,#89,#a0,#00,#01,#8d,#01
	db #04,#00,#01,#88,#07,#10,#3d,#06
	db #3d,#06,#8d,#00,#00,#00,#00,#85
	db #8a,#01,#89,#a0,#00,#01,#8d,#01
	db #04,#00,#01,#88,#07,#10,#3b,#03
	db #38,#03,#8d,#00,#00,#00,#00,#85
	db #8a,#01,#89,#a3,#01,#01,#8d,#01
	db #1e,#00,#01,#88,#07,#00,#88,#06
	db #07,#8d,#01,#08,#00,#00,#2a,#04
	db #8a,#00,#88,#07,#01,#28,#14,#8a
	db #01,#8d,#00,#00,#00,#00,#85,#8a
	db #01,#89,#a0,#01,#01,#8d,#01,#1e
	db #00,#01,#88,#07,#00,#88,#06,#07
	db #8d,#01,#08,#00,#00,#2a,#03,#8a
	db #00,#88,#07,#01,#28,#09,#8a,#01
	db #8d,#00,#00,#00,#00,#85,#8a,#01
	db #89,#90,#00,#01,#8d,#01,#1e,#00
	db #01,#88,#07,#00,#88,#06,#07,#8d
	db #01,#08,#00,#00,#2a,#02,#8a,#00
	db #88,#07,#02,#28,#04,#8a,#01,#8d
	db #00,#00,#00,#00,#85,#8a,#01,#89
	db #a0,#01,#01,#8d,#01,#1e,#00,#01
	db #88,#07,#00,#88,#06,#07,#8d,#01
	db #08,#00,#00,#2a,#02,#8a,#00,#88
	db #07,#02,#28,#0a,#8a,#01,#8d,#00
	db #00,#00,#00,#85,#8a,#01,#89,#a0
	db #02,#01,#88,#07,#20,#28,#01,#8c
	db #04,#07,#05,#8c,#00,#85,#8a,#01
	db #89,#c0,#01,#01,#88,#07,#10,#0d
.l4ec7 equ $ + 2
	db #0c,#85,#91,#ff,#92,#ff,#8a,#01
	db #89,#a0,#00,#02,#8d,#0a,#01,#03
	db #00,#88,#07,#08,#38,#18,#3d,#48
	db #38,#18,#8c,#03,#44,#48,#8c,#00
	db #3d,#18,#42,#0c,#40,#0c,#44,#0c
	db #45,#0c,#44,#0c,#40,#0c,#3d,#06
	db #3b,#12,#3d,#06,#3b,#06,#38,#06
	db #36,#06,#38,#06,#36,#06,#33,#06
	db #31,#06,#8d,#06,#03,#00,#01,#89
.l4f13 equ $ + 6
	db #b0,#01,#01,#3d,#24,#83,#91,#ff
	db #92,#ff,#88,#07,#12,#0b,#18,#8a
	db #01,#89,#90,#00,#02,#82,#02,#86
	db #f4,#88,#07,#10,#86,#f4,#84,#92
	db #4f,#84,#b1,#4f,#84,#d0,#4f,#84
	db #b1,#4f,#84,#92,#4f,#84,#b1,#4f
	db #84,#92,#4f,#8d,#06,#03,#00,#01
	db #82,#00,#89,#b0,#01,#01,#86,#00
.l4f50 equ $ + 3
	db #34,#24,#83,#91,#ff,#92,#ff,#88
	db #07,#24,#0b,#18,#8a,#01,#89,#c0
	db #02,#01,#88,#07,#20,#19,#18,#20
	db #0c,#25,#0c,#21,#18,#1c,#0c,#21
	db #0c,#22,#18,#25,#0c,#22,#0c,#21
	db #0c,#25,#0c,#27,#0c,#20,#0c,#19
	db #18,#1c,#18,#21,#18,#1c,#18,#19
	db #30,#8d,#06,#03,#00,#01,#89,#b0
	db #01,#01,#25,#24,#83,#4c,#47,#49
	db #44,#47,#40,#44,#3d,#44,#40,#47
	db #44,#4c,#47,#49,#88,#07,#12,#16
	db #16,#16,#88,#07,#10,#4c,#47,#49
	db #44,#47,#40,#85,#4c,#45,#49,#40
	db #45,#40,#39,#3d,#40,#45,#40,#49
	db #4c,#45,#49,#88,#07,#12,#16,#16
	db #16,#88,#07,#10,#4c,#45,#49,#40
	db #45,#40,#85,#4c,#46,#49,#40,#46
	db #40,#3a,#3d,#40,#46,#40,#49,#4c
	db #46,#49,#88,#07,#12,#16,#16,#16
	db #88,#07,#10,#4c,#46,#49,#40,#46
.l4fef equ $ + 2
	db #40,#85,#91,#ff,#92,#ff,#8a,#01
	db #89,#a0,#02,#01,#88,#07,#08,#82
	db #04,#80,#18,#33,#3a,#38,#33,#31
	db #3d,#3c,#3d,#81,#90,#ef,#4f,#83
.l500d
	db #91,#ff,#92,#ff,#8a,#01,#89,#90
	db #00,#02,#8c,#00,#88,#07,#10,#82
	db #02,#80,#06,#37,#3a,#33,#3a,#37
	db #3a,#33,#37,#81,#80,#02,#35,#3a
	db #31,#3a,#35,#3a,#31,#37,#81,#80
	db #06,#37,#3a,#33,#3a,#37,#3a,#33
	db #37,#81,#80,#02,#35,#3a,#31,#3a
	db #35,#3a,#31,#37,#81,#82,#00,#89
	db #cb,#0c,#01,#8d,#08,#03,#02,#00
	db #92,#02,#33,#08,#33,#18,#31,#20
	db #8c,#01,#35,#20,#37,#10,#38,#10
	db #3a,#04,#3a,#04,#3a,#04,#3a,#14
	db #3a,#04,#3a,#04,#3a,#04,#3a,#14
	db #3a,#04,#3a,#04,#3a,#04,#3a,#14
	db #3c,#10,#3d,#10,#3f,#20,#3a,#20
	db #38,#20,#37,#10,#35,#10,#37,#04
	db #37,#04,#37,#04,#37,#14,#37,#04
	db #37,#04,#37,#04,#37,#14,#37,#04
	db #37,#04,#37,#04,#37,#14,#38,#10
.l50ab equ $ + 6
	db #35,#10,#90,#0d,#50,#83,#91,#ff
	db #92,#ff,#80,#0c,#84,#0b,#51,#81
	db #92,#02,#89,#ca,#0a,#01,#88,#07
	db #20,#2e,#04,#2e,#04,#2e,#04,#2e
	db #14,#2c,#04,#2c,#04,#2c,#04,#2c
	db #14,#2b,#04,#2b,#04,#2b,#04,#2b
	db #14,#2c,#10,#29,#10,#92,#ff,#80
	db #04,#84,#0b,#51,#81,#92,#02,#89
	db #ca,#0a,#01,#88,#07,#20,#2e,#04
	db #2e,#04,#2e,#04,#2e,#14,#2c,#04
	db #2c,#04,#2c,#04,#2c,#14,#2b,#04
	db #2b,#04,#2b,#04,#2e,#14,#2e,#10
	db #2e,#10,#90,#ab,#50,#83,#8a,#01
	db #89,#c0,#02,#01,#88,#07,#20,#1b
	db #08,#1b,#08,#88,#07,#04,#88,#06
	db #07,#89,#a0,#00,#01,#4d,#04,#4d
	db #04,#4d,#04,#4d,#04,#85
;
.game_name
	db "Sly Spy - Secret Agent",0
.game_year
	db "1990",0
.game_publisher
	db "Ocean Software",0
.music_author
	db "Geoff Follin",0
.music_comment
	db "",0

	read "music_end_v1_0.asm"
